<template>
  <div id="share">
    <headBox class="headBox">
      <p slot="headText" class="headText">发现</p>
      <img src="../../assets/img/findMess.png" alt="" class="mess" slot="editBox" />
    </headBox>
    <find-top-nav></find-top-nav>
    <ul class="shareList">
      <li v-for="(item, idx) in shareData" :key="idx">
        <img :src="item.img" alt="" class="shopImg" />
        <p class="text">{{ item.text }}</p>
        <div class="infoBox">
          <div class="info">
            <img :src="item.userImg" alt="" class="userImg" />
            <p class="userName">{{ item.userName }}</p>
          </div>
          <p class="address">{{ item.address }}</p>
        </div>
      </li>
    </ul>
    <bottom-nav></bottom-nav>
  </div>
</template>
<script>
import headBox from "../../component/headBox.vue";
import findTopNav from "../../component/findTopNav.vue";
import bottomNav from '../../component/bottomNav.vue'
export default {
  name: "share",
  components: {
    headBox,
    findTopNav,
    bottomNav
  },
  data() {
    return {
      shareData: [
        {
          img: require("../../assets/img/shareImg.png"),
          text: "在办公司放这个熏香炉简直太赞了，漂亮又实惠好用",
          userImg: require("../../assets/img/shareUserImg.png"),
          userName: "潭***",
          address: "安徽",
        },
        {
          img: require("../../assets/img/shareImg.png"),
          text: "在办公司放这个熏香炉简直太赞了，漂亮又实惠好用",
          userImg: require("../../assets/img/shareUserImg.png"),
          userName: "潭***",
          address: "安徽",
        },
        {
          img: require("../../assets/img/shareImg.png"),
          text: "在办公司放这个熏香炉简直太赞了，漂亮又实惠好用",
          userImg: require("../../assets/img/shareUserImg.png"),
          userName: "潭***",
          address: "安徽",
        },
        {
          img: require("../../assets/img/shareImg.png"),
          text: "在办公司放这个熏香炉简直太赞了，漂亮又实惠好用",
          userImg: require("../../assets/img/shareUserImg.png"),
          userName: "潭***",
          address: "安徽",
        },
        {
          img: require("../../assets/img/shareImg.png"),
          text: "在办公司放这个熏香炉简直太赞了，漂亮又实惠好用",
          userImg: require("../../assets/img/shareUserImg.png"),
          userName: "潭***",
          address: "安徽",
        },
        {
          img: require("../../assets/img/shareImg.png"),
          text: "在办公司放这个熏香炉简直太赞了，漂亮又实惠好用",
          userImg: require("../../assets/img/shareUserImg.png"),
          userName: "潭***",
          address: "安徽",
        },
      ],
    };
  },
};
</script>
<style lang="less" scoped>
#share {
  background: #f5f5f5;
}
.headBox {
  position: relative;
  .headText {
    font-size: 0.17rem;
    color: #ffffff;
  }
  .mess {
    position: absolute;
    right: 0.08rem;
    top: 0.1rem;
  }
}
.shareList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-top: 0.16rem;
  li {
    background: #fff;
    display: flex;
    flex-direction: column;
    width: 1.66rem;
    height: 2.58rem;
    margin-bottom: 0.11rem;
    .shopImg {
      width: 1.66rem;
      height: 1.66rem;
    }
    .text {
      width: 1.5rem;
      height: 0.41rem;
      font-size: 0.14rem;
      text-overflow: -o-ellipsis-lastline;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      margin: 0 auto;
      margin-top: 0.08rem;
    }
    .infoBox {
      display: flex;
      justify-content: space-between;
      height: 0.2rem;
      line-height: 0.2rem;
      width: 1.5rem;
      margin: 0 auto;
      margin-top: 0.11rem;
      .info {
        display: flex;
        .userImg {
          width: 0.2rem;
          height: 0.2rem;
        }
        .userName {
          font-size: 0.12rem;
          margin-left: 0.04rem;
        }
      }
      .address {
        font-size: 0.12rem;
      }
    }
  }
}
</style>